using System.Web.Mvc;
using eDirectory.Common.Message;
using eDirectory.Domain.AppServices;

namespace eDirectory.Mvc.Controllers
{
    public abstract class eDirectoryControllerBase : Controller
    {
        protected void CheckDtoResponse(DtoBase dto)
        {
            Container.RequestContext.ResponseManager.CheckResponse(dto.Response);
        }

        protected void CheckDtoResponse(DtoResponse dto)
        {
            Container.RequestContext.ResponseManager.CheckResponse(dto.Response);
        }
    }
}